package com.Maykk.Demo07;

/**
 * @ClassName Demo07Test
 * @Description: TODO
 * @Author: MaykkSTAR@163.com
 * @DATE: 2023/2/27
 */
public class Demo07Test {
    public static void main(String[] args) {
        B b = new B("B");
        b.method();
        System.out.println(b.getNAME());
        C c = new C("小肆C");
        c.method();
        System.out.println(c.getNAME());
    }
}
